package com.youge.gmall.service.impl;

import com.youge.gmall.bean.UserAddress;
import com.youge.gmall.service.UserService;
import org.apache.dubbo.config.annotation.DubboService;

import java.util.Arrays;
import java.util.List;

/**
 * @author: hcf
 * @qq: 46914685
 * @email: 46914685@qq.com
 * @date: 2020-10-13 20:21
 */
@DubboService(version ="0.0.0") //暴露服务
//@DubboService //暴露服务
public class UserServiceImpl implements UserService {
    @Override
    public List<UserAddress> getUserAddressList(String userId) {
        System.out.println("UserServiceImpl....old....");
        UserAddress userAddress1 = new UserAddress(1, "南宁市青秀区东葛路100号", "1", "张三", "0771-5685754", "Y");
        UserAddress userAddress2 = new UserAddress(1, "玉林市玉东区教育路55号", "1", "李四", "0775-3854545", "N");
        return Arrays.asList(userAddress1, userAddress2);
    }
}
